function t(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];throw new Error("number"==typeof t?"[MobX] minified error nr: "+t+(i.length?" "+i.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+t)}function n(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:zn}function i(){ni||t("Proxy not available")}function r(t){var n=!1;return function(){if(!n)return n=!0,t.apply(this,arguments)}}function e(t){return"function"==typeof t}function u(t){switch(typeof t){case"string":case"symbol":case"number":return!0}return!1}function o(t){return null!==t&&"object"==typeof t}function s(t){if(!o(t))return!1;var n=Object.getPrototypeOf(t);if(null==n)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return"function"==typeof i&&i.toString()===ii}function a(t){var n=null==t?void 0:t.constructor;return!!n&&("GeneratorFunction"===n.name||"GeneratorFunction"===n.displayName)}function f(t,n,i){Yn(t,n,{enumerable:!1,writable:!0,configurable:!0,value:i})}function c(t,n,i){Yn(t,n,{enumerable:!1,writable:!1,configurable:!0,value:i})}function h(t,n){var i="isMobX"+t;return n.prototype[i]=!0,function(t){return o(t)&&!0===t[i]}}function v(t){return t instanceof Map}function l(t){return t instanceof Set}function d(t){return null===t?null:"object"==typeof t?""+t:t}function b(t,n){return Qn.hasOwnProperty.call(t,n)}function y(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,n,i){return n&&y(t.prototype,n),i&&y(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function m(){return(m=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(this,arguments)}function w(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,(Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function O(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function j(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,r=new Array(n);i<n;i++)r[i]=t[i];return r}function A(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t){if(t){if("string"==typeof t)return j(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(t,void 0):void 0}}(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(t){return Object.assign((function(n,i){_(n,i,t)}),t)}function _(t,n,i){b(t,si)||f(t,si,m({},t[si])),function(t){return"override"===t.t}(i)||(t[si][n]=i)}function S(t,n,i){void 0===n&&(n=ri),void 0===i&&(i=ri);var r=new fi(t);return n!==ri&&kt(r,n),i!==ri&&Et(r,i),r}function x(t,n,i){return Yt(t)?t:Array.isArray(t)?Ai.array(t,{name:i}):s(t)?Ai.object(t,void 0,{name:i}):v(t)?Ai.map(t,{name:i}):l(t)?Ai.set(t,{name:i}):"function"!=typeof t||Mt(t)||Xt(t)?t:a(t)?rr(t):Qi(i,t)}function M(t){return t}function R(t,n){return{t:t,i:n,u:V,o:N}}function V(t,n,i,r){var e;if(null!=(e=this.i)&&e.bound)return null===this.o(t,n,i,!1)?0:1;if(r===t.s)return null===this.o(t,n,i,!1)?0:2;if(Mt(i.value))return 1;var u=k(t,this,n,i,!1);return Yn(r,n,u),2}function N(t,n,i,r){var e=k(t,this,n,i);return t.h(n,e,r)}function k(t,n,i,r,e){var u,o,s,a,f,c,h;void 0===e&&(e=Fi.safeDescriptors);var v,l=r.value;return null!=(u=n.i)&&u.bound&&(l=l.bind(null!=(v=t.v)?v:t.s)),{value:z(null!=(o=null==(s=n.i)?void 0:s.name)?o:i.toString(),l,null!=(a=null==(f=n.i)?void 0:f.autoAction)&&a,null!=(c=n.i)&&c.bound?null!=(h=t.v)?h:t.s:void 0),configurable:!e||t.l,enumerable:!1,writable:!e}}function E(t,n){return{t:t,i:n,u:C,o:T}}function C(t,n,i,r){var e;if(r===t.s)return null===this.o(t,n,i,!1)?0:2;if(null!=(e=this.i)&&e.bound&&(!b(t.s,n)||!Xt(t.s[n]))&&null===this.o(t,n,i,!1))return 0;if(Xt(i.value))return 1;var u=I(t,0,0,i,!1,!1);return Yn(r,n,u),2}function T(t,n,i,r){var e,u=I(t,0,0,i,null==(e=this.i)?void 0:e.bound);return t.h(n,u,r)}function I(t,n,i,r,e,u){void 0===u&&(u=Fi.safeDescriptors);var o,s=r.value;return Xt(s)||(s=rr(s)),e&&((s=s.bind(null!=(o=t.v)?o:t.s)).isMobXFlow=!0),{value:s,configurable:!u||t.l,enumerable:!1,writable:!u}}function K(t,n){return{t:t,i:n,u:L,o:P}}function L(t,n,i){return null===this.o(t,n,i,!1)?0:1}function P(t,n,i,r){return t.p(n,m({},this.i,{get:i.get,set:i.set}),r)}function D(t,n){return{t:t,i:n,u:B,o:G}}function B(t,n,i){return null===this.o(t,n,i,!1)?0:1}function G(t,n,i,r){var e,u;return t.m(n,i.value,null!=(e=null==(u=this.i)?void 0:u.enhancer)?e:x,r)}function q(t){return{t:"true",i:t,u:F,o:X}}function F(t,n,i,r){var e,u,o,s;if(i.get)return Si.u(t,n,i,r);if(i.set){var f=z(n.toString(),i.set);return r===t.s?null===t.h(n,{configurable:!Fi.safeDescriptors||t.l,set:f})?0:2:(Yn(r,n,{configurable:!0,set:f}),2)}if(r!==t.s&&"function"==typeof i.value)return a(i.value)?(null!=(s=this.i)&&s.autoBind?rr.bound:rr).u(t,n,i,r):(null!=(o=this.i)&&o.autoBind?Qi.bound:Qi).u(t,n,i,r);var c,h=!1===(null==(e=this.i)?void 0:e.deep)?Ai.ref:Ai;return"function"==typeof i.value&&null!=(u=this.i)&&u.autoBind&&(i.value=i.value.bind(null!=(c=t.v)?c:t.s)),h.u(t,n,i,r)}function X(t,n,i,r){var e,u,o;return i.get?Si.o(t,n,i,r):i.set?t.h(n,{configurable:!Fi.safeDescriptors||t.l,set:z(n.toString(),i.set)},r):("function"==typeof i.value&&null!=(e=this.i)&&e.autoBind&&(i.value=i.value.bind(null!=(o=t.v)?o:t.s)),(!1===(null==(u=this.i)?void 0:u.deep)?Ai.ref:Ai).o(t,n,i,r))}function U(t){return t||di}function W(t){return!0===t.deep?x:!1===t.deep?M:(n=t.defaultDecorator)&&null!=(i=null==(r=n.i)?void 0:r.enhancer)?i:x;var n,i,r}function H(t,n,i){if(!u(n))return Yt(t)?t:s(t)?Ai.object(t,n,i):Array.isArray(t)?Ai.array(t,n):v(t)?Ai.map(t,n):l(t)?Ai.set(t,n):"object"==typeof t&&null!==t?t:Ai.box(t,n);_(t,n,bi)}function z(t,n,i,r){function e(){return $(0,i,n,r||this,arguments)}return void 0===i&&(i=!1),e.isMobxAction=!0,Vi&&(Ni.value=t,Object.defineProperty(e,"name",Ni)),e}function $(t,n,i,r,e){var u=J(0,n);try{return i.apply(r,e)}catch(t){throw u.O=t,t}finally{Y(u)}}function J(t,n){var i=Fi.trackingDerivation,r=!n||!i;pt();var e=Fi.allowStateChanges;r&&(st(),e=Z(!0));var u={j:r,A:i,g:e,_:ft(!0),S:!1,M:0,R:Ri++,V:Mi};return Mi=u.R,u}function Y(n){Mi!==n.R&&t(30),Mi=n.V,void 0!==n.O&&(Fi.suppressReactionErrors=!0),tt(n.g),ct(n._),mt(),n.j&&at(n.A),Fi.suppressReactionErrors=!1}function Q(t,n){var i=Z(t);try{return n()}finally{tt(i)}}function Z(t){var n=Fi.allowStateChanges;return Fi.allowStateChanges=t,n}function tt(t){Fi.allowStateChanges=t}function nt(t){return t instanceof Pi}function it(t){switch(t.N){case Ti.k:return!1;case Ti.C:case Ti.T:return!0;case Ti.I:for(var n=ft(!0),i=st(),r=t.K,e=r.length,u=0;u<e;u++){var o=r[u];if(Li(o)){if(Fi.disableErrorBoundaries)o.get();else try{o.get()}catch(t){return at(i),ct(n),!0}if(t.N===Ti.T)return at(i),ct(n),!0}}return ht(t),at(i),ct(n),!1}}function rt(){return null!==Fi.trackingDerivation}function et(t,n,i){var r=ft(!0);ht(t),t.L=new Array(t.K.length+100),t.P=0,t.D=++Fi.runId;var e,u=Fi.trackingDerivation;if(Fi.trackingDerivation=t,Fi.inBatch++,!0===Fi.disableErrorBoundaries)e=n.call(i);else try{e=n.call(i)}catch(t){e=new Pi(t)}return Fi.inBatch--,Fi.trackingDerivation=u,function(t){for(var n=t.K,i=t.K=t.L,r=Ti.k,e=0,u=t.P,o=0;o<u;o++){var s=i[o];0===s.B&&(s.B=1,e!==o&&(i[e]=s),e++),s.N>r&&(r=s.N)}for(i.length=e,t.L=null,u=n.length;u--;){var a=n[u];0===a.B&&bt(a,t),a.B=0}for(;e--;){var f=i[e];1===f.B&&(f.B=0,dt(f,t))}r!==Ti.k&&(t.N=r,t.G())}(t),ct(r),e}function ut(t){var n=t.K;t.K=[];for(var i=n.length;i--;)bt(n[i],t);t.N=Ti.C}function ot(t){var n=st();try{return t()}finally{at(n)}}function st(){var t=Fi.trackingDerivation;return Fi.trackingDerivation=null,t}function at(t){Fi.trackingDerivation=t}function ft(t){var n=Fi.allowStateReads;return Fi.allowStateReads=t,n}function ct(t){Fi.allowStateReads=t}function ht(t){if(t.N!==Ti.k){t.N=Ti.k;for(var n=t.K,i=n.length;i--;)n[i].q=Ti.k}}function vt(){return Fi}function lt(){var t=new Bi;for(var n in t)-1===Di.indexOf(n)&&(Fi[n]=t[n]);Fi.allowStateChanges=!Fi.enforceActions}function dt(t,n){t.F.add(n),t.q>n.N&&(t.q=n.N)}function bt(t,n){t.F.delete(n),0===t.F.size&&yt(t)}function yt(t){!1===t.X&&(t.X=!0,Fi.pendingUnobservations.push(t))}function pt(){Fi.inBatch++}function mt(){if(0==--Fi.inBatch){At();for(var t=Fi.pendingUnobservations,n=0;n<t.length;n++){var i=t[n];i.X=!1,0===i.F.size&&(i.U&&(i.U=!1,i.onBUO()),i instanceof Ki&&i.W())}Fi.pendingUnobservations=[]}}function wt(t){var n=Fi.trackingDerivation;return null!==n?(n.D!==t.H&&(t.H=n.D,n.L[n.P++]=t,!t.U&&Fi.trackingContext&&(t.U=!0,t.onBO())),!0):(0===t.F.size&&Fi.inBatch>0&&yt(t),!1)}function Ot(t){t.q!==Ti.T&&(t.q=Ti.T,t.F.forEach((function(t){t.N===Ti.k&&t.G(),t.N=Ti.T})))}function jt(t){return Fi.globalReactionErrorHandlers.push(t),function(){var n=Fi.globalReactionErrorHandlers.indexOf(t);n>=0&&Fi.globalReactionErrorHandlers.splice(n,1)}}function At(){Fi.inBatch>0||Fi.isRunningReactions||Ui(gt)}function gt(){Fi.isRunningReactions=!0;for(var t=Fi.pendingReactions,n=0;t.length>0;){100==++n&&(console.error("[mobx] cycle in reaction: "+t[0]),t.splice(0));for(var i=t.splice(0),r=0,e=i.length;r<e;r++)i[r].$()}Fi.isRunningReactions=!1}function _t(){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}function St(t){return function(n,i){return e(n)?z(n.name||"<unnamed action>",n,t):e(i)?z(n,i,t):u(i)?_(n,i,t?$i:Hi):u(n)?g(R(t?"autoAction":"action",{name:n,autoAction:t})):void 0}}function xt(t){return $(0,!1,t,this,void 0)}function Mt(t){return e(t)&&!0===t.isMobxAction}function Rt(t,n){function i(){t(u)}var r,e;void 0===n&&(n=ti);var u,o=null!=(r=null==(e=n)?void 0:e.name)?r:"Autorun";if(n.scheduler||n.delay){var s=Vt(n),a=!1;u=new Xi(o,(function(){a||(a=!0,s((function(){a=!1,u.J||u.track(i)})))}),n.onError,n.requiresObservable)}else u=new Xi(o,(function(){this.track(i)}),n.onError,n.requiresObservable);return u.Y(),u.Z()}function Vt(t){return t.scheduler?t.scheduler:t.delay?function(n){return setTimeout(n,t.delay)}:Zi}function Nt(t,n,i){function r(){if(d=!1,!y.J){var n=!1;y.track((function(){var i=Q(!1,(function(){return t(y)}));n=l||!b(s,i),a=s,s=i})),(l&&i.fireImmediately||!l&&n)&&c(s,a,y),l=!1}}var e;void 0===i&&(i=ti);var u,o,s,a,f=null!=(e=i.name)?e:"Reaction",c=Yi(f,i.onError?(u=i.onError,o=n,function(){try{return o.apply(this,arguments)}catch(t){u.call(this,t)}}):n),h=!i.scheduler&&!i.delay,v=Vt(i),l=!0,d=!1,b=i.compareStructural?hi.structural:i.equals||hi.default,y=new Xi(f,(function(){l||h?r():d||(d=!0,v(r))}),i.onError,i.requiresObservable);return y.Y(),y.Z()}function kt(t,n,i){return Ct("onBO",t,n,i)}function Et(t,n,i){return Ct("onBUO",t,n,i)}function Ct(t,n,i,r){var u="function"==typeof r?Gn(n,i):Gn(n),o=e(r)?r:i,s=t+"L";return u[s]?u[s].add(o):u[s]=new Set([o]),function(){var t=u[s];t&&(t.delete(o),0===t.size&&delete u[s])}}function Tt(i){!0===i.isolateGlobalState&&function(){if((Fi.pendingReactions.length||Fi.inBatch||Fi.isRunningReactions)&&t(36),qi=!0,Gi){var i=n();0==--i.__mobxInstanceCount&&(i.__mobxGlobals=void 0),Fi=new Bi}}();var r,e,u=i.useProxies,o=i.enforceActions;if(void 0!==u&&(Fi.useProxies="always"===u||"never"!==u&&"undefined"!=typeof Proxy),"ifavailable"===u&&(Fi.verifyProxies=!0),void 0!==o){var s="always"===o?"always":"observed"===o;Fi.enforceActions=s,Fi.allowStateChanges=!0!==s&&"always"!==s}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in i&&(Fi[t]=!!i[t])})),Fi.allowStateReads=!Fi.observableRequiresReaction,i.reactionScheduler&&(r=i.reactionScheduler,e=Ui,Ui=function(t){return r((function(){return e(t)}))})}function It(t,n,i,r){var e=oi(n),u=Cn(t,r)[ai];pt();try{ui(e).forEach((function(t){u.o(t,e[t],!i||!(t in i)||i[t])}))}finally{mt()}return t}function Kt(t,n){return Lt(Gn(t,n))}function Lt(t){var n,i={name:t.tt};return t.K&&t.K.length>0&&(i.dependencies=(n=t.K,Array.from(new Set(n))).map(Lt)),i}function Pt(t,n){return Dt(Gn(t,n))}function Dt(t){var n={name:t.tt};return function(t){return t.F&&t.F.size>0}(t)&&(n.observers=Array.from(function(t){return t.F}(t)).map(Dt)),n}function Bt(){this.message="FLOW_CANCELLED"}function Gt(t){return t instanceof Bt}function qt(t){e(t.cancel)&&t.cancel()}function Ft(t){return t}function Xt(t){return!0===(null==t?void 0:t.isMobXFlow)}function Ut(t,n,i){var r;return mr(t)||En(t)||Ci(t)?r=qn(t):In(t)&&(r=qn(t,n)),r.dehancer="function"==typeof n?n:i,function(){r.dehancer=void 0}}function Wt(t,n,i){return e(i)?function(t,n,i){return qn(t,n).nt(i)}(t,n,i):function(t,n){return qn(t).nt(n)}(t,n)}function Ht(t,n){if(void 0===n)return Li(t);if(!1===In(t))return!1;if(!t[ai].it.has(n))return!1;var i=Gn(t,n);return Li(i)}function zt(t){return Ht(t)}function $t(t,n){return Ht(t,n)}function Jt(t,n){return!!t&&(void 0!==n?!!In(t)&&t[ai].it.has(n):In(t)||!!t[ai]||ci(t)||Wi(t)||Li(t))}function Yt(t){return Jt(t)}function Qt(t,n){return Jt(t,n)}function Zt(n){return In(n)?n[ai].rt():mr(n)||gr(n)?Array.from(n.keys()):En(n)?n.map((function(t,n){return n})):void t(5)}function tn(n){return In(n)?Zt(n).map((function(t){return n[t]})):mr(n)?Zt(n).map((function(t){return n.get(t)})):gr(n)?Array.from(n.values()):En(n)?n.slice():void t(6)}function nn(n){return In(n)?Zt(n).map((function(t){return[t,n[t]]})):mr(n)?Zt(n).map((function(t){return[t,n.get(t)]})):gr(n)?Array.from(n.entries()):En(n)?n.map((function(t,n){return[n,t]})):void t(7)}function rn(n,i,r){if(2!==arguments.length||gr(n))In(n)?n[ai].et(i,r):mr(n)?n.set(i,r):gr(n)?n.add(i):En(n)?("number"!=typeof i&&(i=parseInt(i,10)),i<0&&t("Invalid index: '"+i+"'"),pt(),i>=n.length&&(n.length=i+1),n[i]=r,mt()):t(8);else{pt();var e=i;try{for(var u in e)rn(n,u,e[u])}finally{mt()}}}function en(n,i){In(n)?n[ai].ut(i):mr(n)||gr(n)?n.delete(i):En(n)?("number"!=typeof i&&(i=parseInt(i,10)),n.splice(i,1)):t(9)}function un(n,i){return In(n)?n[ai].ot(i):mr(n)||gr(n)?n.has(i):En(n)?i>=0&&i<n.length:void t(10)}function on(n,i){if(un(n,i))return In(n)?n[ai].st(i):mr(n)?n.get(i):En(n)?n[i]:void t(11)}function sn(n,i,r){if(In(n))return n[ai].h(i,r);t(39)}function an(n){if(In(n))return n[ai].at();t(38)}function fn(t,n,i,r){return e(i)?function(t,n,i,r){return qn(t,n).ft(i,r)}(t,n,i,r):function(t,n,i){return qn(t).ft(n,i)}(t,n,i)}function cn(t,n,i){return t.set(n,i),i}function hn(t){return function t(n,i){if(null==n||"object"!=typeof n||n instanceof Date||!Yt(n))return n;if(Ci(n)||Li(n))return t(n.get(),i);if(i.has(n))return i.get(n);if(En(n)){var r=cn(i,n,new Array(n.length));return n.forEach((function(n,e){r[e]=t(n,i)})),r}if(gr(n)){var e=cn(i,n,new Set);return n.forEach((function(n){e.add(t(n,i))})),e}if(mr(n)){var u=cn(i,n,new Map);return n.forEach((function(n,r){u.set(r,t(n,i))})),u}var o=cn(i,n,{});return an(n).forEach((function(r){Qn.propertyIsEnumerable.call(n,r)&&(o[r]=t(n[r],i))})),o}(t,new Map)}function vn(){t("trace() is not available in production builds");for(var n=!1,i=arguments.length,r=new Array(i),e=0;e<i;e++)r[e]=arguments[e];"boolean"==typeof r[r.length-1]&&(n=r.pop());var u=ln(r);if(!u)return t("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");u.ct===Ii.NONE&&console.log("[mobx.trace] '"+u.tt+"' tracing enabled"),u.ct=n?Ii.BREAK:Ii.LOG}function ln(t){switch(t.length){case 0:return Fi.trackingDerivation;case 1:return Gn(t[0]);case 2:return Gn(t[0],t[1])}}function dn(t,n){void 0===n&&(n=void 0),pt();try{return t.apply(n)}finally{mt()}}function bn(t,n,i){return 1===arguments.length||n&&"object"==typeof n?pn(t,n):yn(t,n,i||{})}function yn(t,n,i){var r;if("number"==typeof i.timeout){var e=new Error("WHEN_TIMEOUT");r=setTimeout((function(){if(!o[ai].J){if(o(),!i.onError)throw e;i.onError(e)}}),i.timeout)}i.name="When";var u=z("When-effect",n),o=Rt((function(n){Q(!1,t)&&(n.dispose(),r&&clearTimeout(r),u())}),i);return o}function pn(t,n){var i,r=new Promise((function(r,e){var u=yn(t,r,m({},n,{onError:e}));i=function(){u(),e(new Error("WHEN_CANCELLED"))}}));return r.cancel=i,r}function mn(t){return t[ai]}function wn(t){return void 0!==t.ht&&t.ht.length>0}function On(t,n){var i=t.ht||(t.ht=[]);return i.push(n),r((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function jn(n,i){var r=st();try{for(var e=[].concat(n.ht||[]),u=0,o=e.length;u<o&&((i=e[u](i))&&!i.type&&t(14),i);u++);return i}finally{at(r)}}function An(t){return void 0!==t.vt&&t.vt.length>0}function gn(t,n){var i=t.vt||(t.vt=[]);return i.push(n),r((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function _n(t,n){var i=st(),r=t.vt;if(r){for(var e=0,u=(r=r.slice()).length;e<u;e++)r[e](n);at(i)}}function Sn(t,n,i){var r=Cn(t,i)[ai];pt();try{null!=n||(n=function(t){return b(t,si)||f(t,si,m({},t[si])),t[si]}(t)),ui(n).forEach((function(t){return r.u(t,n[t])}))}finally{mt()}return t}function xn(t,n,i){if(s(t))return It(t,t,n,i);var r=Cn(t,i)[ai];if(!t[ur]){var e=Object.getPrototypeOf(t),u=new Set([].concat(ui(t),ui(e)));u.delete("constructor"),u.delete(ai),f(e,ur,u)}pt();try{t[ur].forEach((function(t){return r.u(t,!n||!(t in n)||n[t])}))}finally{mt()}return t}function Mn(t,n,r,e){void 0===r&&(r="ObservableArray"),void 0===e&&(e=!1),i();var u=new ar(r,n,e,!1);c(u.it,ai,u);var o=new Proxy(u.it,sr);if(u.v=o,t&&t.length){var s=Z(!0);u.lt(0,0,t),tt(s)}return o}function Rn(t,n){"function"==typeof Array.prototype[t]&&(fr[t]=n(t))}function Vn(t){return function(){var n=this[ai];n.dt.reportObserved();var i=n.bt(n.it);return i[t].apply(i,arguments)}}function Nn(t){return function(n,i){var r=this,e=this[ai];return e.dt.reportObserved(),e.bt(e.it)[t]((function(t,e){return n.call(i,t,e,r)}))}}function kn(t){return function(){var n=this,i=this[ai];i.dt.reportObserved();var r=i.bt(i.it),e=arguments[0];return arguments[0]=function(t,i,r){return e(t,i,r,n)},r[t].apply(r,arguments)}}function En(t){return o(t)&&vr(t[ai])}function Cn(t,n){var i;if(b(t,ai))return t;var r=null!=(i=null==n?void 0:n.name)?i:"ObservableObject",e=new Sr(t,new Map,String(r),function(t){var n;return t?null!=(n=t.defaultDecorator)?n:q(t):void 0}(n));return f(t,ai,e),t}function Tn(t){return _r[t]||(_r[t]={get:function(){return this[ai].yt(t)},set:function(n){return this[ai].pt(t,n)}})}function In(t){return!!o(t)&&xr(t[ai])}function Kn(t,n,i){var r;null==(r=t.s[si])||delete r[i]}function Ln(t){return{enumerable:!1,configurable:!0,get:function(){return this[ai].st(t)},set:function(n){this[ai].et(t,n)}}}function Pn(t){Yn(Nr.prototype,""+t,Ln(t))}function Dn(t){if(t>Rr){for(var n=Rr;n<t+100;n++)Pn(n);Rr=t}}function Bn(t,n,i){return new Nr(t,n,i)}function Gn(n,i){if("object"==typeof n&&null!==n){if(En(n))return void 0!==i&&t(23),n[ai].dt;if(gr(n))return n[ai];if(mr(n)){if(void 0===i)return n.wt;var r=n.Ot.get(i)||n.jt.get(i);return r||t(25,i,Fn(n)),r}if(In(n)){if(!i)return t(26);var u=n[ai].it.get(i);return u||t(27,i,Fn(n)),u}if(ci(n)||Li(n)||Wi(n))return n}else if(e(n)&&Wi(n[ai]))return n[ai];t(28)}function qn(n,i){return n||t(29),void 0!==i?qn(Gn(n,i)):ci(n)||Li(n)||Wi(n)||mr(n)||gr(n)?n:n[ai]?n[ai]:void t(24,n)}function Fn(t,n){var i;if(void 0!==n)i=Gn(t,n);else{if(Mt(t))return t.name;i=In(t)||mr(t)||gr(t)?qn(t):Gn(t)}return i.tt}function Xn(t,n,i){return void 0===i&&(i=-1),function t(n,i,r,u,o){if(n===i)return 0!==n||1/n==1/i;if(null==n||null==i)return!1;if(n!=n)return i!=i;var s=typeof n;if("function"!==s&&"object"!==s&&"object"!=typeof i)return!1;var a=kr.call(n);if(a!==kr.call(i))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+n==""+i;case"[object Number]":return+n!=+n?+i!=+i:0==+n?1/+n==1/i:+n==+i;case"[object Date]":case"[object Boolean]":return+n==+i;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(n)===Symbol.valueOf.call(i);case"[object Map]":case"[object Set]":r>=0&&r++}n=Un(n),i=Un(i);var f="[object Array]"===a;if(!f){if("object"!=typeof n||"object"!=typeof i)return!1;var c=n.constructor,h=i.constructor;if(c!==h&&!(e(c)&&c instanceof c&&e(h)&&h instanceof h)&&"constructor"in n&&"constructor"in i)return!1}if(0===r)return!1;r<0&&(r=-1),o=o||[];for(var v=(u=u||[]).length;v--;)if(u[v]===n)return o[v]===i;if(u.push(n),o.push(i),f){if((v=n.length)!==i.length)return!1;for(;v--;)if(!t(n[v],i[v],r-1,u,o))return!1}else{var l,d=Object.keys(n);if(v=d.length,Object.keys(i).length!==v)return!1;for(;v--;)if(!b(i,l=d[v])||!t(n[l],i[l],r-1,u,o))return!1}return u.pop(),o.pop(),!0}(t,n,i)}function Un(t){return En(t)?t.slice():v(t)||mr(t)||l(t)||gr(t)?Array.from(t.entries()):t}function Wn(t){return t[Symbol.iterator]=Hn,t}function Hn(){return this}var zn={},$n=Object.assign,Jn=Object.getOwnPropertyDescriptor,Yn=Object.defineProperty,Qn=Object.prototype,Zn=[];Object.freeze(Zn);var ti={};Object.freeze(ti);var ni="undefined"!=typeof Proxy,ii=Object.toString(),ri=function(){},ei=void 0!==Object.getOwnPropertySymbols,ui="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:ei?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,oi=Object.getOwnPropertyDescriptors||function(t){var n={};return ui(t).forEach((function(i){n[i]=Jn(t,i)})),n},si=Symbol("mobx-stored-annotations"),ai=Symbol("mobx administration"),fi=function(){function t(t){void 0===t&&(t="Atom"),this.tt=void 0,this.X=!1,this.U=!1,this.F=new Set,this.B=0,this.H=0,this.q=Ti.C,this.onBOL=void 0,this.onBUOL=void 0,this.tt=t}var n=t.prototype;return n.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},n.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},n.reportObserved=function(){return wt(this)},n.reportChanged=function(){pt(),Ot(this),mt()},n.toString=function(){return this.tt},t}(),ci=h("Atom",fi),hi={identity:function(t,n){return t===n},structural:function(t,n){return Xn(t,n)},default:function(t,n){return Object.is?Object.is(t,n):t===n?0!==t||1/t==1/n:t!=t&&n!=n},shallow:function(t,n){return Xn(t,n,1)}},vi=g({t:"override",u:function(){return 0},o:function(){t("'"+this.t+"' can only be used with 'makeObservable'")}}),li=q(),di={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(di);var bi=D("observable"),yi=D("observable.ref",{enhancer:M}),pi=D("observable.shallow",{enhancer:function(t,n,i){return null==t||In(t)||En(t)||mr(t)||gr(t)?t:Array.isArray(t)?Ai.array(t,{name:i,deep:!1}):s(t)?Ai.object(t,void 0,{name:i,deep:!1}):v(t)?Ai.map(t,{name:i,deep:!1}):l(t)?Ai.set(t,{name:i,deep:!1}):void 0}}),mi=D("observable.struct",{enhancer:function(t,n){return Xn(t,n)?n:t}}),wi=g(bi);Object.assign(H,wi);var Oi,ji,Ai=$n(H,{box:function(t,n){var i=U(n);return new Ei(t,W(i),i.name,!0,i.equals)},array:function(t,n){var i=U(n);return(!1===Fi.useProxies||!1===i.proxy?Bn:Mn)(t,W(i),i.name)},map:function(t,n){var i=U(n);return new pr(t,W(i),i.name)},set:function(t,n){var i=U(n);return new Ar(t,W(i),i.name)},object:function(t,n,r){return It(!1===Fi.useProxies||!1===(null==r?void 0:r.proxy)?Cn({},r):function(t,n){var r,e;return i(),null!=(e=(r=(t=Cn(t,n))[ai]).v)?e:r.v=new Proxy(t,er)}({},r),t,n)},ref:g(yi),shallow:g(pi),deep:wi,struct:g(mi)}),gi=K("computed"),_i=K("computed.struct",{equals:hi.structural}),Si=function(t,n){if(u(n))return _(t,n,gi);if(s(t))return g(K("computed",t));var i=s(n)?n:{};return i.get=t,i.name||(i.name=t.name||""),new Ki(i)};Object.assign(Si,gi),Si.struct=g(_i);var xi,Mi=0,Ri=1,Vi=null!=(Oi=null==(ji=Jn((function(){}),"name"))?void 0:ji.configurable)&&Oi,Ni={value:"action",configurable:!0,writable:!1,enumerable:!1};xi=Symbol.toPrimitive;var ki,Ei=function(t){function n(n,i,r,e,u){var o;return void 0===r&&(r="ObservableValue"),void 0===u&&(u=hi.default),(o=t.call(this,r)||this).enhancer=void 0,o.tt=void 0,o.equals=void 0,o.At=!1,o.ht=void 0,o.vt=void 0,o.gt=void 0,o.dehancer=void 0,o.enhancer=i,o.tt=r,o.equals=u,o.gt=i(n,void 0,r),o}w(n,t);var i=n.prototype;return i.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.set=function(t){(t=this._t(t))!==Fi.UNCHANGED&&this.St(t)},i._t=function(t){if(wn(this)){var n=jn(this,{object:this,type:or,newValue:t});if(!n)return Fi.UNCHANGED;t=n.newValue}return t=this.enhancer(t,this.gt,this.tt),this.equals(this.gt,t)?Fi.UNCHANGED:t},i.St=function(t){var n=this.gt;this.gt=t,this.reportChanged(),An(this)&&_n(this,{type:or,object:this,newValue:t,oldValue:n})},i.get=function(){return this.reportObserved(),this.dehanceValue(this.gt)},i.nt=function(t){return On(this,t)},i.ft=function(t,n){return n&&t({observableKind:"value",debugObjectName:this.tt,object:this,type:or,newValue:this.gt,oldValue:void 0}),gn(this,t)},i.raw=function(){return this.gt},i.toJSON=function(){return this.get()},i.toString=function(){return this.tt+"["+this.gt+"]"},i.valueOf=function(){return d(this.get())},i[xi]=function(){return this.valueOf()},n}(fi),Ci=h("ObservableValue",Ei);ki=Symbol.toPrimitive;var Ti,Ii,Ki=function(){function n(n){this.N=Ti.C,this.K=[],this.L=null,this.U=!1,this.X=!1,this.F=new Set,this.B=0,this.D=0,this.H=0,this.q=Ti.k,this.P=0,this.gt=new Pi(null),this.tt=void 0,this.xt=void 0,this.Mt=!1,this.Rt=!1,this.derivation=void 0,this.Vt=void 0,this.ct=Ii.NONE,this.Nt=void 0,this.kt=void 0,this.Et=void 0,this.Ct=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||t(31),this.derivation=n.get,this.tt=n.name||"ComputedValue",n.set&&(this.Vt=z("ComputedValue-setter",n.set)),this.kt=n.equals||(n.compareStructural||n.struct?hi.structural:hi.default),this.Nt=n.context,this.Et=n.requiresReaction,this.Ct=!!n.keepAlive}var i=n.prototype;return i.G=function(){!function(t){t.q===Ti.k&&(t.q=Ti.I,t.F.forEach((function(t){t.N===Ti.k&&(t.N=Ti.I,t.G())})))}(this)},i.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},i.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},i.get=function(){if(this.Mt&&t(32,this.tt,this.derivation),0!==Fi.inBatch||0!==this.F.size||this.Ct){if(wt(this),it(this)){var n=Fi.trackingContext;this.Ct&&!n&&(Fi.trackingContext=this),this.trackAndCompute()&&function(t){t.q!==Ti.T&&(t.q=Ti.T,t.F.forEach((function(n){n.N===Ti.I?n.N=Ti.T:n.N===Ti.k&&(t.q=Ti.k)})))}(this),Fi.trackingContext=n}}else it(this)&&(this.Tt(),pt(),this.gt=this.It(!1),mt());var i=this.gt;if(nt(i))throw i.cause;return i},i.set=function(n){if(this.Vt){this.Rt&&t(33,this.tt),this.Rt=!0;try{this.Vt.call(this.Nt,n)}finally{this.Rt=!1}}else t(34,this.tt)},i.trackAndCompute=function(){var t=this.gt,n=this.N===Ti.C,i=this.It(!0),r=n||nt(t)||nt(i)||!this.kt(t,i);return r&&(this.gt=i),r},i.It=function(t){this.Mt=!0;var n,i=Z(!1);if(t)n=et(this,this.derivation,this.Nt);else if(!0===Fi.disableErrorBoundaries)n=this.derivation.call(this.Nt);else try{n=this.derivation.call(this.Nt)}catch(t){n=new Pi(t)}return tt(i),this.Mt=!1,n},i.W=function(){this.Ct||(ut(this),this.gt=void 0)},i.ft=function(t,n){var i=this,r=!0,e=void 0;return Rt((function(){var u=i.get();if(!r||n){var o=st();t({observableKind:"computed",debugObjectName:i.tt,type:or,object:i,newValue:u,oldValue:e}),at(o)}r=!1,e=u}))},i.Tt=function(){},i.toString=function(){return this.tt+"["+this.derivation.toString()+"]"},i.valueOf=function(){return d(this.get())},i[ki]=function(){return this.valueOf()},n}(),Li=h("ComputedValue",Ki);!function(t){t[t.C=-1]="NOT_TRACKING_",t[t.k=0]="UP_TO_DATE_",t[t.I=1]="POSSIBLY_STALE_",t[t.T=2]="STALE_"}(Ti||(Ti={})),function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"}(Ii||(Ii={}));var Pi=function(t){this.cause=void 0,this.cause=t},Di=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED","useProxies"],Bi=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},Gi=!0,qi=!1,Fi=function(){var i=n();return i.__mobxInstanceCount>0&&!i.__mobxGlobals&&(Gi=!1),i.__mobxGlobals&&i.__mobxGlobals.version!==(new Bi).version&&(Gi=!1),Gi?i.__mobxGlobals?(i.__mobxInstanceCount+=1,i.__mobxGlobals.UNCHANGED||(i.__mobxGlobals.UNCHANGED={}),i.__mobxGlobals):(i.__mobxInstanceCount=1,i.__mobxGlobals=new Bi):(setTimeout((function(){qi||t(35)}),1),new Bi)}(),Xi=function(){function t(t,n,i,r){void 0===t&&(t="Reaction"),this.tt=void 0,this.Kt=void 0,this.Lt=void 0,this.Pt=void 0,this.K=[],this.L=[],this.N=Ti.C,this.B=0,this.D=0,this.P=0,this.J=!1,this.Dt=!1,this.Bt=!1,this.Gt=!1,this.ct=Ii.NONE,this.tt=t,this.Kt=n,this.Lt=i,this.Pt=r}var n=t.prototype;return n.G=function(){this.Y()},n.Y=function(){this.Dt||(this.Dt=!0,Fi.pendingReactions.push(this),At())},n.isScheduled=function(){return this.Dt},n.$=function(){if(!this.J){pt(),this.Dt=!1;var t=Fi.trackingContext;if(Fi.trackingContext=this,it(this)){this.Bt=!0;try{this.Kt()}catch(t){this.qt(t)}}Fi.trackingContext=t,mt()}},n.track=function(t){if(!this.J){pt(),this.Gt=!0;var n=Fi.trackingContext;Fi.trackingContext=this;var i=et(this,t,void 0);Fi.trackingContext=n,this.Gt=!1,this.Bt=!1,this.J&&ut(this),nt(i)&&this.qt(i.cause),mt()}},n.qt=function(t){var n=this;if(this.Lt)this.Lt(t,this);else{if(Fi.disableErrorBoundaries)throw t;Fi.suppressReactionErrors||console.error("[mobx] uncaught error in '"+this+"'",t),Fi.globalReactionErrorHandlers.forEach((function(i){return i(t,n)}))}},n.dispose=function(){this.J||(this.J=!0,this.Gt||(pt(),ut(this),mt()))},n.Z=function(){var t=this.dispose.bind(this);return t[ai]=this,t},n.toString=function(){return"Reaction["+this.tt+"]"},n.trace=function(t){void 0===t&&(t=!1),vn(this,t)},t}(),Ui=function(t){return t()},Wi=h("Reaction",Xi),Hi=R("action"),zi=R("action.bound",{bound:!0}),$i=R("autoAction",{autoAction:!0}),Ji=R("autoAction.bound",{autoAction:!0,bound:!0}),Yi=St(!1);Object.assign(Yi,Hi);var Qi=St(!0);Object.assign(Qi,$i),Yi.bound=g(zi),Qi.bound=g(Ji);var Zi=function(t){return t()},tr=0;Bt.prototype=Object.create(Error.prototype);var nr=E("flow"),ir=E("flow.bound",{bound:!0}),rr=Object.assign((function(t,n){if(u(n))return _(t,n,nr);var i=t,r=i.name||"<unnamed flow>",o=function(){var t,n=this,u=arguments,o=++tr,s=Yi(r+" - runid: "+o+" - init",i).apply(n,u),a=void 0,f=new Promise((function(n,i){function u(t){var n;a=void 0;try{n=Yi(r+" - runid: "+o+" - yield "+h++,s.next).call(s,t)}catch(t){return i(t)}c(n)}function f(t){var n;a=void 0;try{n=Yi(r+" - runid: "+o+" - yield "+h++,s.throw).call(s,t)}catch(t){return i(t)}c(n)}function c(t){if(!e(null==t?void 0:t.then))return t.done?n(t.value):(a=Promise.resolve(t.value)).then(u,f);t.then(c,i)}var h=0;t=i,u(void 0)}));return f.cancel=Yi(r+" - runid: "+o+" - cancel",(function(){try{a&&qt(a);var n=s.return(void 0),i=Promise.resolve(n.value);i.then(ri,ri),qt(i),t(new Bt)}catch(n){t(n)}})),f};return o.isMobXFlow=!0,o}),nr);rr.bound=g(ir);var er={has:function(t,n){return mn(t).ot(n)},get:function(t,n){return mn(t).st(n)},set:function(t,n,i){var r;return!!u(n)&&(null==(r=mn(t).et(n,i,!0))||r)},deleteProperty:function(t,n){var i;return!!u(n)&&(null==(i=mn(t).ut(n,!0))||i)},defineProperty:function(t,n,i){var r;return null==(r=mn(t).h(n,i))||r},ownKeys:function(t){return mn(t).at()},preventExtensions:function(){t(13)}},ur=Symbol("mobx-keys"),or="update",sr={get:function(t,n){var i=t[ai];return n===ai?i:"length"===n?i.Ft():"string"!=typeof n||isNaN(n)?b(fr,n)?fr[n]:t[n]:i.st(parseInt(n))},set:function(t,n,i){var r=t[ai];return"length"===n&&r.Xt(i),"symbol"==typeof n||isNaN(n)?t[n]=i:r.et(parseInt(n),i),!0},preventExtensions:function(){t(15)}},ar=function(){function n(t,n,i,r){void 0===t&&(t="ObservableArray"),this.Ut=void 0,this.Wt=void 0,this.dt=void 0,this.it=[],this.ht=void 0,this.vt=void 0,this.Ht=void 0,this.dehancer=void 0,this.v=void 0,this.zt=0,this.Ut=i,this.Wt=r,this.dt=new fi(t),this.Ht=function(t,i){return n(t,i,"ObservableArray[..]")}}var i=n.prototype;return i.$t=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.bt=function(t){return void 0!==this.dehancer&&t.length>0?t.map(this.dehancer):t},i.nt=function(t){return On(this,t)},i.ft=function(t,n){return void 0===n&&(n=!1),n&&t({observableKind:"array",object:this.v,debugObjectName:this.dt.tt,type:"splice",index:0,added:this.it.slice(),addedCount:this.it.length,removed:[],removedCount:0}),gn(this,t)},i.Ft=function(){return this.dt.reportObserved(),this.it.length},i.Xt=function(n){("number"!=typeof n||isNaN(n)||n<0)&&t("Out of range: "+n);var i=this.it.length;if(n!==i)if(n>i){for(var r=new Array(n-i),e=0;e<n-i;e++)r[e]=void 0;this.lt(i,0,r)}else this.lt(n,i-n)},i.Jt=function(n,i){n!==this.zt&&t(16),this.zt+=i,this.Wt&&i>0&&Dn(n+i+1)},i.lt=function(t,n,i){var r=this,e=this.it.length;if(void 0===t?t=0:t>e?t=e:t<0&&(t=Math.max(0,e+t)),n=1===arguments.length?e-t:null==n?0:Math.max(0,Math.min(n,e-t)),void 0===i&&(i=Zn),wn(this)){var u=jn(this,{object:this.v,type:"splice",index:t,removedCount:n,added:i});if(!u)return Zn;n=u.removedCount,i=u.added}if(i=0===i.length?i:i.map((function(t){return r.Ht(t,void 0)})),this.Wt){var o=i.length-n;this.Jt(e,o)}var s=this.Yt(t,n,i);return 0===n&&0===i.length||this.Qt(t,i,s),this.bt(s)},i.Yt=function(t,n,i){var r;if(i.length<1e4)return(r=this.it).splice.apply(r,[t,n].concat(i));var e=this.it.slice(t,t+n),u=this.it.slice(t+n);this.it.length+=i.length-n;for(var o=0;o<i.length;o++)this.it[t+o]=i[o];for(var s=0;s<u.length;s++)this.it[t+i.length+s]=u[s];return e},i.Zt=function(t,n,i){var r=!this.Ut&&!1,e=An(this),u=e||r?{observableKind:"array",object:this.v,type:or,debugObjectName:this.dt.tt,index:t,newValue:n,oldValue:i}:null;this.dt.reportChanged(),e&&_n(this,u)},i.Qt=function(t,n,i){var r=!this.Ut&&!1,e=An(this),u=e||r?{observableKind:"array",object:this.v,debugObjectName:this.dt.tt,type:"splice",index:t,removed:i,added:n,removedCount:i.length,addedCount:n.length}:null;this.dt.reportChanged(),e&&_n(this,u)},i.st=function(t){if(t<this.it.length)return this.dt.reportObserved(),this.$t(this.it[t]);console.warn("[mobx.array] Attempt to read an array index ("+t+") that is out of bounds ("+this.it.length+"). Please check length first. Out of bound indices will not be tracked by MobX")},i.et=function(n,i){var r=this.it;if(n<r.length){var e=r[n];if(wn(this)){var u=jn(this,{type:or,object:this.v,index:n,newValue:i});if(!u)return;i=u.newValue}(i=this.Ht(i,e))!==e&&(r[n]=i,this.Zt(n,i,e))}else n===r.length?this.lt(n,0,[i]):t(17,n,r.length)},n}(),fr={clear:function(){return this.splice(0)},replace:function(t){var n=this[ai];return n.lt(0,n.it.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),e=2;e<i;e++)r[e-2]=arguments[e];var u=this[ai];switch(arguments.length){case 0:return[];case 1:return u.lt(t);case 2:return u.lt(t,n)}return u.lt(t,n,r)},spliceWithArray:function(t,n,i){return this[ai].lt(t,n,i)},push:function(){for(var t=this[ai],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.lt(t.it.length,0,i),t.it.length},pop:function(){return this.splice(Math.max(this[ai].it.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[ai],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.lt(0,0,i),t.it.length},reverse:function(){return Fi.trackingDerivation&&t(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){Fi.trackingDerivation&&t(37,"sort");var n=this.slice();return n.sort.apply(n,arguments),this.replace(n),this},remove:function(t){var n=this[ai],i=n.bt(n.it).indexOf(t);return i>-1&&(this.splice(i,1),!0)}};Rn("concat",Vn),Rn("flat",Vn),Rn("includes",Vn),Rn("indexOf",Vn),Rn("join",Vn),Rn("lastIndexOf",Vn),Rn("slice",Vn),Rn("toString",Vn),Rn("toLocaleString",Vn),Rn("every",Nn),Rn("filter",Nn),Rn("find",Nn),Rn("findIndex",Nn),Rn("flatMap",Nn),Rn("forEach",Nn),Rn("map",Nn),Rn("some",Nn),Rn("reduce",kn),Rn("reduceRight",kn);var cr,hr,vr=h("ObservableArrayAdministration",ar),lr={},dr="add";cr=Symbol.iterator,hr=Symbol.toStringTag;var br,yr,pr=function(){function n(n,i,r){var u=this;void 0===i&&(i=x),void 0===r&&(r="ObservableMap"),this.Ht=void 0,this.tt=void 0,this[ai]=lr,this.Ot=void 0,this.jt=void 0,this.wt=void 0,this.ht=void 0,this.vt=void 0,this.dehancer=void 0,this.Ht=i,this.tt=r,e(Map)||t(18),this.wt=S("ObservableMap.keys()"),this.Ot=new Map,this.jt=new Map,Q(!0,(function(){u.merge(n)}))}var i=n.prototype;return i.ot=function(t){return this.Ot.has(t)},i.has=function(t){var n=this;if(!Fi.trackingDerivation)return this.ot(t);var i=this.jt.get(t);if(!i){var r=i=new Ei(this.ot(t),M,"ObservableMap.key?",!1);this.jt.set(t,r),Et(r,(function(){return n.jt.delete(t)}))}return i.get()},i.set=function(t,n){var i=this.ot(t);if(wn(this)){var r=jn(this,{type:i?or:dr,object:this,newValue:n,name:t});if(!r)return this;n=r.newValue}return i?this.tn(t,n):this.nn(t,n),this},i.delete=function(t){var n=this;if(wn(this)&&!jn(this,{type:"delete",object:this,name:t}))return!1;if(this.ot(t)){var i=An(this),r=i?{observableKind:"map",debugObjectName:this.tt,type:"delete",object:this,oldValue:this.Ot.get(t).gt,name:t}:null;return dn((function(){var i;n.wt.reportChanged(),null==(i=n.jt.get(t))||i.St(!1),n.Ot.get(t).St(void 0),n.Ot.delete(t)})),i&&_n(this,r),!0}return!1},i.tn=function(t,n){var i=this.Ot.get(t);if((n=i._t(n))!==Fi.UNCHANGED){var r=An(this),e=r?{observableKind:"map",debugObjectName:this.tt,type:or,object:this,oldValue:i.gt,name:t,newValue:n}:null;i.St(n),r&&_n(this,e)}},i.nn=function(t,n){var i=this;dn((function(){var r,e=new Ei(n,i.Ht,"ObservableMap.key",!1);i.Ot.set(t,e),n=e.gt,null==(r=i.jt.get(t))||r.St(!0),i.wt.reportChanged()}));var r=An(this);r&&_n(this,r?{observableKind:"map",debugObjectName:this.tt,type:dr,object:this,name:t,newValue:n}:null)},i.get=function(t){return this.has(t)?this.$t(this.Ot.get(t).get()):this.$t(void 0)},i.$t=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.keys=function(){return this.wt.reportObserved(),this.Ot.keys()},i.values=function(){var t=this,n=this.keys();return Wn({next:function(){var i=n.next(),r=i.done;return{done:r,value:r?void 0:t.get(i.value)}}})},i.entries=function(){var t=this,n=this.keys();return Wn({next:function(){var i=n.next(),r=i.done,e=i.value;return{done:r,value:r?void 0:[e,t.get(e)]}}})},i[cr]=function(){return this.entries()},i.forEach=function(t,n){for(var i,r=A(this);!(i=r()).done;){var e=i.value;t.call(n,e[1],e[0],this)}},i.merge=function(n){var i=this;return mr(n)&&(n=new Map(n)),dn((function(){s(n)?function(t){var n=Object.keys(t);if(!ei)return n;var i=Object.getOwnPropertySymbols(t);return i.length?[].concat(n,i.filter((function(n){return Qn.propertyIsEnumerable.call(t,n)}))):n}(n).forEach((function(t){return i.set(t,n[t])})):Array.isArray(n)?n.forEach((function(t){return i.set(t[0],t[1])})):v(n)?(n.constructor!==Map&&t(19,n),n.forEach((function(t,n){return i.set(n,t)}))):null!=n&&t(20,n)})),this},i.clear=function(){var t=this;dn((function(){ot((function(){for(var n,i=A(t.keys());!(n=i()).done;)t.delete(n.value)}))}))},i.replace=function(n){var i=this;return dn((function(){for(var r,e=function(n){if(v(n)||mr(n))return n;if(Array.isArray(n))return new Map(n);if(s(n)){var i=new Map;for(var r in n)i.set(r,n[r]);return i}return t(21,n)}(n),u=new Map,o=!1,a=A(i.Ot.keys());!(r=a()).done;){var f=r.value;if(!e.has(f))if(i.delete(f))o=!0;else{var c=i.Ot.get(f);u.set(f,c)}}for(var h,l=A(e.entries());!(h=l()).done;){var d=h.value,b=d[0],y=d[1],p=i.Ot.has(b);if(i.set(b,y),i.Ot.has(b)){var m=i.Ot.get(b);u.set(b,m),p||(o=!0)}}if(!o)if(i.Ot.size!==u.size)i.wt.reportChanged();else for(var w=i.Ot.keys(),O=u.keys(),j=w.next(),g=O.next();!j.done;){if(j.value!==g.value){i.wt.reportChanged();break}j=w.next(),g=O.next()}i.Ot=u})),this},i.toString=function(){return"[object ObservableMap]"},i.toJSON=function(){return Array.from(this)},i.ft=function(t){return gn(this,t)},i.nt=function(t){return On(this,t)},p(n,[{key:"size",get:function(){return this.wt.reportObserved(),this.Ot.size}},{key:hr,get:function(){return"Map"}}]),n}(),mr=h("ObservableMap",pr),wr={};br=Symbol.iterator,yr=Symbol.toStringTag;var Or,jr,Ar=function(){function n(n,i,r){void 0===i&&(i=x),void 0===r&&(r="ObservableSet"),this.tt=void 0,this[ai]=wr,this.Ot=new Set,this.dt=void 0,this.vt=void 0,this.ht=void 0,this.dehancer=void 0,this.Ht=void 0,this.tt=r,e(Set)||t(22),this.dt=S(this.tt),this.Ht=function(t,n){return i(t,n,r)},n&&this.replace(n)}var i=n.prototype;return i.$t=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.clear=function(){var t=this;dn((function(){ot((function(){for(var n,i=A(t.Ot.values());!(n=i()).done;)t.delete(n.value)}))}))},i.forEach=function(t,n){for(var i,r=A(this);!(i=r()).done;){var e=i.value;t.call(n,e,e,this)}},i.add=function(t){var n=this;if(wn(this)&&!jn(this,{type:dr,object:this,newValue:t}))return this;if(!this.has(t)){dn((function(){n.Ot.add(n.Ht(t,void 0)),n.dt.reportChanged()}));var i=An(this);i&&_n(this,i?{observableKind:"set",debugObjectName:this.tt,type:dr,object:this,newValue:t}:null)}return this},i.delete=function(t){var n=this;if(wn(this)&&!jn(this,{type:"delete",object:this,oldValue:t}))return!1;if(this.has(t)){var i=An(this),r=i?{observableKind:"set",debugObjectName:this.tt,type:"delete",object:this,oldValue:t}:null;return dn((function(){n.dt.reportChanged(),n.Ot.delete(t)})),i&&_n(this,r),!0}return!1},i.has=function(t){return this.dt.reportObserved(),this.Ot.has(this.$t(t))},i.entries=function(){var t=0,n=Array.from(this.keys()),i=Array.from(this.values());return Wn({next:function(){var r=t;return t+=1,r<i.length?{value:[n[r],i[r]],done:!1}:{done:!0}}})},i.keys=function(){return this.values()},i.values=function(){this.dt.reportObserved();var t=this,n=0,i=Array.from(this.Ot.values());return Wn({next:function(){return n<i.length?{value:t.$t(i[n++]),done:!1}:{done:!0}}})},i.replace=function(n){var i=this;return gr(n)&&(n=new Set(n)),dn((function(){Array.isArray(n)||l(n)?(i.clear(),n.forEach((function(t){return i.add(t)}))):null!=n&&t("Cannot initialize set from "+n)})),this},i.ft=function(t){return gn(this,t)},i.nt=function(t){return On(this,t)},i.toJSON=function(){return Array.from(this)},i.toString=function(){return"[object ObservableSet]"},i[br]=function(){return this.values()},p(n,[{key:"size",get:function(){return this.dt.reportObserved(),this.Ot.size}},{key:yr,get:function(){return"Set"}}]),n}(),gr=h("ObservableSet",Ar),_r=Object.create(null),Sr=function(){function n(t,n,i,r){void 0===n&&(n=new Map),void 0===r&&(r=li),this.s=void 0,this.it=void 0,this.tt=void 0,this.in=void 0,this.wt=void 0,this.vt=void 0,this.ht=void 0,this.v=void 0,this.l=void 0,this.rn=void 0,this.en=void 0,this.s=t,this.it=n,this.tt=i,this.in=r,this.wt=new fi("ObservableObject.keys"),this.l=s(this.s)}var i=n.prototype;return i.yt=function(t){return this.it.get(t).get()},i.pt=function(t,n){var i=this.it.get(t);if(i instanceof Ki)return i.set(n),!0;if(wn(this)){var r=jn(this,{type:or,object:this.v||this.s,name:t,newValue:n});if(!r)return null;n=r.newValue}if((n=i._t(n))!==Fi.UNCHANGED){var e=An(this),u=e?{type:or,observableKind:"object",debugObjectName:this.tt,object:this.v||this.s,oldValue:i.gt,name:t,newValue:n}:null;i.St(n),e&&_n(this,u)}return!0},i.st=function(t){return Fi.trackingDerivation&&!b(this.s,t)&&this.ot(t),this.s[t]},i.et=function(t,n,i){return void 0===i&&(i=!1),b(this.s,t)?this.it.has(t)?this.pt(t,n):i?Reflect.set(this.s,t,n):(this.s[t]=n,!0):this.o(t,{value:n,enumerable:!0,writable:!0,configurable:!0},this.in,i)},i.ot=function(t){if(!Fi.trackingDerivation)return t in this.s;this.en||(this.en=new Map);var n=this.en.get(t);return n||(n=new Ei(t in this.s,M,"ObservableObject.key?",!1),this.en.set(t,n)),n.get()},i.u=function(n,i){if(!0===i&&(i=this.in),!1!==i){if(!(n in this.s)){var r;if(null!=(r=this.s[si])&&r[n])return;t(1,i.t,this.tt+"."+n.toString())}for(var e=this.s;e&&e!==Qn;){var u=Jn(e,n);if(u){var o=i.u(this,n,u,e);if(0===o)return;if(1===o)break}e=Object.getPrototypeOf(e)}Kn(this,0,n)}},i.o=function(t,n,i,r){if(void 0===r&&(r=!1),!0===i&&(i=this.in),!1===i)return this.h(t,n,r);var e=i.o(this,t,n,r);return e&&Kn(this,0,t),e},i.h=function(t,n,i){void 0===i&&(i=!1);try{pt();var r=this.ut(t);if(!r)return r;if(wn(this)){var e=jn(this,{object:this.v||this.s,name:t,type:dr,newValue:n.value});if(!e)return null;var u=e.newValue;n.value!==u&&(n=m({},n,{value:u}))}if(i){if(!Reflect.defineProperty(this.s,t,n))return!1}else Yn(this.s,t,n);this.un(t,n.value)}finally{mt()}return!0},i.m=function(t,n,i,r){void 0===r&&(r=!1);try{pt();var e=this.ut(t);if(!e)return e;if(wn(this)){var u=jn(this,{object:this.v||this.s,name:t,type:dr,newValue:n});if(!u)return null;n=u.newValue}var o=Tn(t),s={configurable:!Fi.safeDescriptors||this.l,enumerable:!0,get:o.get,set:o.set};if(r){if(!Reflect.defineProperty(this.s,t,s))return!1}else Yn(this.s,t,s);var a=new Ei(n,i,"ObservableObject.key",!1);this.it.set(t,a),this.un(t,a.gt)}finally{mt()}return!0},i.p=function(t,n,i){void 0===i&&(i=!1);try{pt();var r=this.ut(t);if(!r)return r;if(wn(this)&&!jn(this,{object:this.v||this.s,name:t,type:dr,newValue:void 0}))return null;n.name||(n.name="ObservableObject.key"),n.context=this.v||this.s;var e=Tn(t),u={configurable:!Fi.safeDescriptors||this.l,enumerable:!1,get:e.get,set:e.set};if(i){if(!Reflect.defineProperty(this.s,t,u))return!1}else Yn(this.s,t,u);this.it.set(t,new Ki(n)),this.un(t,void 0)}finally{mt()}return!0},i.ut=function(t,n){if(void 0===n&&(n=!1),!b(this.s,t))return!0;if(wn(this)&&!jn(this,{object:this.v||this.s,name:t,type:"remove"}))return null;try{var i,r;pt();var e,u=An(this),o=this.it.get(t),s=void 0;if(!o&&u&&(s=null==(e=Jn(this.s,t))?void 0:e.value),n){if(!Reflect.deleteProperty(this.s,t))return!1}else delete this.s[t];o&&(this.it.delete(t),o instanceof Ei&&(s=o.gt),Ot(o)),this.wt.reportChanged(),null==(i=this.en)||null==(r=i.get(t))||r.set(t in this.s),u&&u&&_n(this,{type:"remove",observableKind:"object",object:this.v||this.s,debugObjectName:this.tt,oldValue:s,name:t})}finally{mt()}return!0},i.ft=function(t){return gn(this,t)},i.nt=function(t){return On(this,t)},i.un=function(t,n){var i,r,e=An(this);e&&e&&_n(this,e?{type:dr,observableKind:"object",debugObjectName:this.tt,object:this.v||this.s,name:t,newValue:n}:null),null==(i=this.en)||null==(r=i.get(t))||r.set(!0),this.wt.reportChanged()},i.at=function(){return this.wt.reportObserved(),ui(this.s)},i.rt=function(){return this.wt.reportObserved(),Object.keys(this.s)},n}(),xr=h("ObservableObjectAdministration",Sr),Mr=Ln(0),Rr=0,Vr=function(){};Or=Vr,jr=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(Or.prototype,jr):void 0!==Or.prototype.__proto__?Or.prototype.__proto__=jr:Or.prototype=jr;var Nr=function(t,n,i){function r(n,i,r,e){var u;void 0===r&&(r="ObservableArray"),void 0===e&&(e=!1),u=t.call(this)||this;var o=new ar(r,i,e,!0);if(o.v=O(u),c(O(u),ai,o),n&&n.length){var s=Z(!0);u.spliceWithArray(0,0,n),tt(s)}return Object.defineProperty(O(u),"0",Mr),u}w(r,t);var e=r.prototype;return e.concat=function(){this[ai].dt.reportObserved();for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Array.prototype.concat.apply(this.slice(),n.map((function(t){return En(t)?t.slice():t})))},e[i]=function(){var t=this,n=0;return Wn({next:function(){return n<t.length?{value:t[n++],done:!1}:{done:!0,value:void 0}}})},p(r,[{key:"length",get:function(){return this[ai].Ft()},set:function(t){this[ai].Xt(t)}},{key:n,get:function(){return"Array"}}]),r}(Vr,Symbol.toStringTag,Symbol.iterator);Object.entries(fr).forEach((function(t){var n=t[0];"concat"!==n&&f(Nr.prototype,n,t[1])})),Dn(1e3);var kr=Qn.toString;["Symbol","Map","Set"].forEach((function(i){void 0===n()[i]&&t("MobX requires global '"+i+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:_t,extras:{getDebugName:Fn},$mobx:ai});export{ai as $mobx,Bt as FlowCancellationError,pr as ObservableMap,Ar as ObservableSet,Xi as Reaction,Q as _allowStateChanges,xt as _allowStateChangesInsideComputed,ct as _allowStateReadsEnd,ft as _allowStateReadsStart,Qi as _autoAction,Y as _endAction,qn as _getAdministration,vt as _getGlobalState,Ut as _interceptReads,rt as _isComputingDerivation,lt as _resetGlobalState,J as _startAction,Yi as action,Rt as autorun,hi as comparer,Si as computed,Tt as configure,S as createAtom,sn as defineProperty,nn as entries,It as extendObservable,rr as flow,Ft as flowResult,on as get,Gn as getAtom,Fn as getDebugName,Kt as getDependencyTree,Pt as getObserverTree,un as has,Wt as intercept,Mt as isAction,Ci as isBoxedObservable,zt as isComputed,$t as isComputedProp,Xt as isFlow,Gt as isFlowCancellationError,Yt as isObservable,En as isObservableArray,mr as isObservableMap,In as isObservableObject,Qt as isObservableProp,gr as isObservableSet,Zt as keys,xn as makeAutoObservable,Sn as makeObservable,Ai as observable,fn as observe,kt as onBecomeObserved,Et as onBecomeUnobserved,jt as onReactionError,vi as override,an as ownKeys,Nt as reaction,en as remove,xt as runInAction,rn as set,_t as spy,hn as toJS,vn as trace,dn as transaction,ot as untracked,tn as values,bn as when};
//# sourceMappingURL=mobx.esm.production.min.js.map
